<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>好听的歌</title>
</head>
<body>
    <ol>
        <li>莉莉安<button onclick="p1()">播放</button> </li>
        <li>董小姐<button onclick="p2()">播放</button> </li>
        <li>郭源潮<button id="b3" onclick="p3()">播放</button> </li>
    </ol>
    <script>
        var m = new Audio();
        function p1() {
            m.src = "https://win-web-ri01-sycdn.kuwo.cn/4d43d00f3f89919fae01be5d240616cb/5f980564/resource/n3/83/4/2547919137.mp3";
            m.play();
        }
        function p2() {
            m.src = "https://win-web-rf01-sycdn.kuwo.cn/a0599be8fa9b4bbc017f16528c97c5cb/5f980620/resource/n1/84/14/3445671699.mp3";
            m.play();
        }
        function p3() {
            if(b3.innerHTML == "播放"){
                b3.innerHTML = "暂停";
                m.currentTime = 40;
                m.src = "https://win-web-ri01-sycdn.kuwo.cn/0bc6241be725e2a9b3aa405e30e83058/5f98075c/resource/n1/32/84/2490129473.mp3";
                m.play();
            }else{
                m.pause();
                b3.innerHTML = "播放";
            }


        }
    </script>
</body>
</html>